<template>
    <div>
        <div style="float: left;" v-text="row[column.property]"></div>
        <div style="float: right;">
            <el-button type="primary" @click="showDialog">选择仓位</el-button>
        </div>
    </div>
</template>

<script>
export default {
    name: "vDownTreesAndListsDialog",
    props: {
        params: Object,
    },
    watch: {

    },
    data() {
        let _this = this;
        return {
            row: null,
            column: null,
        };
    },
    created() {
        this.load();
    },
    methods: {
        async load() {
            let _this = this;
            const {row, column} = this.params;
            _this.row = row;
            _this.column = column;
        },
        showDialog() {
            let _this = this;
            _this.visible = true;
            _this.$emit("showDialog", {visible: _this.visible});
        },
    },
    destroyed() {

    },
};
</script>

<style lang="less" rel="stylesheet/less" scoped>

</style>
